package com.db.logging;

import java.util.Date;

/**
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public class LogRecord {
    private final Date date;
    private final String loggerName;
    private final String threadName;
    private final LogLevel level;
    private final String message;

    public LogRecord(Date date, String loggerName, String threadName, LogLevel level, String message) {
        this.date = date;
        this.loggerName = loggerName;
        this.threadName = threadName;
        this.level = level;
        this.message = message;
    }

    public Date getDate() {
        return date;
    }

    public String getLoggerName() {
        return loggerName;
    }

    public String getThreadName() {
        return threadName;
    }

    public LogLevel getLevel() {
        return level;
    }

    public String getMessage() {
        return message;
    }
}
